package com.oohoo.spacestationspringbootstarter.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: leeoohoo@gmail.com
 * @CreateTime: 2022/8/10
 */
@Component
@ConfigurationProperties(prefix = "station")
@Data
public class SpaceStationProperties {


    @Value("${taskExecutorName:}")
    private String taskExecutorName;

    private String defaultBatchSize;

    @Value("${enableDeleted:true}")
    private Boolean enableDeleted;

    @Value("${deletedValue:1}")
    public String deletedValue;


    @Value("${defaultBatchSize:0}")
    public void setDefaultBatchSize(String size) {
        this.defaultBatchSize = size;
    }

}
